package com.itic.appbase.framework.type;

public enum PreType {
	// 预估标识（001：预估，002：实际）
	pre("001","预估收益"),actual("002","实际收益");
	private String type;
	
	private String name;

	PreType(String type ,String name){
		this.type = type;
		this.name = name;
	}
	
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public static PreType getPreType(String type) {
		PreType preType = null;
		switch (type) {
		case "001":
			preType = PreType.pre;
			break;
		case "002":
			preType = PreType.actual;
		default:
			break;
		}
		return preType;
	}
	
}
